This query returns a list of C strings containing the style names.Getting style attributes. Because the language currently does not include a query that returns a style definition, you must query for each attribute individually. To specify the name of the desired style, use the PStyleBegin and StyleEnd pair and place the queries between these commands. For example:
PStyleBegin("para");
PGetFont font;
PGetSize size;
PGetLeading leading;
PGetAlignment alignment;
PGetIndents indents;
PStyleEnd();
As shown, you must close the style definition with the PStyleEnd command (even though you are not actually defining or editing the style).
The queries required to obtain all the attributes of a style are:
PGetAlignment PGetRuleAbove
PGetBasedOn PGetRuleBelow
PGetCase PGetRuleOptions
PGetColor PGetSpaceOptions
PGetDictionary PGetSize
PGetFont PGetTabs
PGetHyphenation PGetTint
PGetIndents PGetTrack
PGetLeading PGetTypePosition
PGetLetterSpace PGetTypeOptions
PGetNextStyle PGetTypeStyle
PGetParaOptions PGetWidth
PGetParaSpace PGetWordSpace
The PStyle command
Comments or suggestions? Contact Adobe Developer Support